﻿namespace Vinno.Brand.Pack.Core.Entities
{
    /// <summary>
    /// 反馈建议
    /// </summary>
    [Description("反馈建议")]
    [EntitySchema(TableConstants.Brand, "VINNO")]
    public class Suggest : EntityBase<Guid>, ICreatedTime
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [Required]
        [StringSize(StringSizeType.General)]
        public string Name { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [StringSize(StringSizeType.Code)]
        [DisplayName("手机号")]
        public string Phone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [StringSize(StringSizeType.General)]
        [DisplayName("邮箱")]
        public string Email { get; set; }

        /// <summary>
        /// 省区代码
        /// </summary>
        [StringSize(StringSizeType.Code)]
        [DisplayName("省区代码")]
        public string AreaCode { get; set; }

        /// <summary>
        /// 地区名称
        /// </summary>
        [StringSize(StringSizeType.Name)]
        [DisplayName("地区名称")]
        public string AreaCity { get; set; }

        /// <summary>
        /// 公司/单位
        /// </summary>
        [StringSize(StringSizeType.Remark)]
        [DisplayName("公司/单位")]
        public string Company { get; set; }

        /// <summary>
        /// 职位
        /// </summary>
        [StringSize(StringSizeType.Name)]
        [DisplayName("职位")]
        public string Position { get; set; }

        /// <summary>
        /// 感兴趣的产品
        /// </summary>
        [DisplayName("感兴趣的产品")]
        public ProductType Type { get; set; }

        /// <summary>
        /// 其他需求
        /// </summary>
        [DisplayName("其他需求")]
        [StringSize(StringSizeType.Data)]
        public string Requirement { get; set; }

        /// <summary>
        /// 获取或设置 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreatedTime { get; set; }
    }
}